package com.zhihuishu.micro.course.openapi.course.util;

import java.util.Date;

public interface MySchoolConstant {
	
	static boolean EXCEPTION_DEBUG = false;
	int IS_DELETED_NO = 0;
	int IS_DELETED_YES = 1;
	
    String  JSON_RETURN_CODE_200 ="200";
    String  JSON_RETURN_CODE_201 ="201";
    String  JSON_RETURN_CODE_202 ="202";
    String  JSON_RETURN_CODE_400 ="400";
    String  JSON_RETURN_CODE_401 ="401";
    String  JSON_RETURN_CODE_403 ="403";
    String  JSON_RETURN_CODE_404 ="404";
    String  JSON_RETURN_CODE_500 ="500";
    
    String  JSON_RETURN_MESSAGE_200 ="请求成功";
    String  JSON_RETURN_MESSAGE_201 ="找不到数据";
    String  JSON_RETURN_MESSAGE_202 ="数据待审核中";
    String  JSON_RETURN_MESSAGE_400 ="请求参数错误";
    String  JSON_RETURN_MESSAGE_401 ="请求未授权/未通过身份验证";
    String  JSON_RETURN_MESSAGE_403 ="请求被拒绝(恶意访问、超过配额等)";
    String  JSON_RETURN_MESSAGE_404 ="请求的方法未找到";
    String  JSON_RETURN_MESSAGE_500 ="加载失败";
    
    String DB_NAME = "db_G2S_OnlineSchool";
    
    // 缓存前缀
    String CACHE_PREFIX = "MySchool_";
    // 缓存时间
    Date CACHE_EXPERY_ONEDAY = new Date(new Date().getTime() + 24 * 60 * 60 * 1000);	// cache one day . 
    
    
    int WOMAN = 0;
    int MAN = 1;
    
    int LABEL_PUBLIC = 0;
    int LABEL_TEACHER = 1;
    int LABEL_COURSE = 2;
    
    int LABEL_NOT_CUSTEM = 0;
    int LABEL_IS_CUSTOM = 1;
    
    int LABEL_ONE_PAGE = 10;
    long PARENT_LABEL_ID_OF_ONE_LEVEL = 0;
    
    int LABEL_COLLEGE = 1;
    
	int ACTIVE = 1;
	int INACTIVE = 0;
	
	int OPERATE_SUCCESS = 1 ;		// 任意操作，成功返回值：1
	int OPERATE_FAIL = 0 ;			// 任意操作，失败返回值：0
	
	boolean CHECK_PASS = Boolean.TRUE ;		// 任意判断，成功返回true
	boolean CHECK_REJECT = Boolean.FALSE ;	// 任意判断，失败返回true
	
}
